﻿@model  Forest.Cat.Admin.Models.Resumes.ResumeListModel
@{
    Layout = "~/Administration/Views/Shared/_AdminLayout.cshtml";
}
<div class="savedsearch_manage_right">
    <div class="savedsearch_manage_right_title">
        管理我的简历</div>
    <div class="savedsearch_manage_right_box">
        <p>
            <b>让你的简历更突出</b><span>（最多填写10份简历）</span>
            @if (Model.Resumes.Count < 10)
            {
                <a href="@Url.Action("ResumeAdd")">
                    <img src="@Url.Content("~/Administration/Content/images/img-builtResume-86-19.jpg")" alt="" /></a>
            }</p>
        <p>
            为了增加你被雇主找到的机会，请您更新您的简历搜索设置信息</p>
        <table cellpadding="0" cellspacing="0" class="rebook_tab" width="100%">
            <tr>
                <th>
                    简历名称
                </th>
                <th>
                    公开设置
                </th>
                <th>
                    最近修改
                </th>
                <th>
                    浏览次数
                </th>
                <th>
                    申请次数
                </th>
                <th>
                    操作
                </th>
            </tr>
            @foreach (var cl in Model.Resumes)
            {
                <tr id=	'@("item_" + cl.Id)'>
                    <td>
                        @cl.ResumeName
                    </td>
                    <td>
                        @cl.PrivacyStatusName
                    </td>
                    <td>@cl.LastUpdated
                    </td>
                    <td style="text-align: center;">
                        @cl.Views
                    </td>
                    <td style="text-align: center;">
                        @cl.ApplyNumber
                    </td>
                    <td style="text-align: center; width: 100px">
                        <div style="float: left">
                            @using (Html.BeginForm("ResumeRefresh", "Resume", FormMethod.Post))
                            {
                                @Html.Hidden("resumeId", cl.Id)
                                <input type="submit" value="刷新" />                               
                            }
                        </div>
                        <div style="float: left">
                            |@Html.ActionLink("修改", "ResumeOverview", new { cl.Id }, null)|
                        </div>
                        <div style="float: left">
                            @using (Html.BeginForm("ResumeDelete", "Resume", FormMethod.Post))
                            {
                                @Html.Hidden("id", cl.Id)
                                @*@Html.Hidden("returnUrl", Request.Url.PathAndQuery)*@
                                <input type="submit" value="删除" onclick="return confirm('确定删除？');" />
                            }
                        </div>
                    </td>
                </tr>
            }
        </table>
    </div>
</div>
